package com.suo.service.impl;

import com.suo.mapper.ProductTypeMapper;
import com.suo.pojo.ProductType;
import com.suo.pojo.ProductTypeExample;
import com.suo.service.ProductTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("productTypeServiceImpl")
public class ProductTypeServiceImpl implements ProductTypeService {

    private ProductTypeMapper mapper;

    @Autowired
    public void setMapper(ProductTypeMapper mapper) {
        this.mapper = mapper;
    }

    @Override
    public List<ProductType> getAll() {
        return mapper.selectByExample(new ProductTypeExample());
    }
}
